package com.sinosoft.web;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author loujiang
 * @date 2020/12/24 11:00 下午
 * @NOTE:
 */
@RestController
@RefreshScope
public class Controller {


    @Value("${name:bob}")
    private  String name;

    @Value("${myWords}")
    private  String words;

    @GetMapping("/name")
    public  String getName()
    {
        return  name;
    }

    @GetMapping("/wrods")
    public  String GetWrods()
    {
        return  words;
    }
}
